<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.List"%>
<%@ page import="model.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="css/host.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" media="screen, projection" rel="stylesheet"
	type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户信息</title>
<script type="text/javascript"></script>
<style>
 .main .col1{
   margin-left:20px;
 }

</style>
</head>
<body>
<!-- Header Start -->
	<div id="header" class="head">
		<div class="content-block">
			<div class="logo" id="hd_logo">
				<img src="photos/logo.png">
			</div>
			<div id="menu" class="menu-bar menu clearfix">
				<a href="IndexServlet">首页</a> 
				<a href="AnnServlet?action=reading">热门</a>
				<a href="AnnServlet?action=music">趣闻</a> 
				<a href="AnnServlet?action=film">神回复</a>
			</div>
			<c:if test="${ empty logoner }">
			<div class="userbar clearfix">
				<div class="logout">
					<a href="pages/logon.jsp" class="fn-signin-required logintop"
						id='logintop' rel="nofollow">登录/</a> <a
						href="pages/register.jsp" class="fn-signin-required logintop"
						id='logintop' rel="nofollow">注册</a>
				</div>
			</div>
			</c:if>
			<c:if test="${ not empty logoner }">
				<div class="userbar clearfix">
					<div class="logout">
						<a href="HostServlet?userId=${ logoner.getUserId() }" class="fn-signin-required logintop" id='logintop'
							rel="nofollow">${ logoner.getUserName() }</a>
						&nbsp;<a href="UserServlet?action=logout">退出</a>
					</div>
				</div>
			</c:if>
		</div>
	</div>
<div class="host_content">
	<div class="header_host">			
			<div id="content-info">
				<div id="header-photo">
					<img class="pic" src=${user.getUserShow() } />
				</div>
				<p class="p">
					昵称：${user.getUserName()}
				</p>
				<br>
				<p class="p">生日：1919年12月32日</p><br>
				<p class="p">星座：处女座</p><br>
				<p class="p">来自：新疆天山大沟</p><br>
				<p class="p">
					性别：${user.getUserSex()}</p><br>
			</div>
			
		</div>		
    <div id="contents">
			
		<div id="content" class="main">
					<div class="content-block clearfix">
						<div id="content-left" class="col1">
							<c:if test="${empty AnnList}">
							您还没有没有发表帖子
							</c:if>
							<c:if test="${not empty AnnList}">
								<c:forEach items="${AnnList}" var="aai">
								<div class="article block untagged mb15"
									id='qiushi_tag_114186367'>

									<div class="author clearfix">
										<a href="ReadServlet?ID=${aai.getAnnID()}">
											<h2>${aai.getAnnTopic()}</h2>
										</a>
									</div>
									<div class="desc">${aai.getAnnBody()}</div>

									<span class="dash"> <a href="/article/114186367"
										data-share="/article/114186367" id="c-114186367"
										class="qiushi_comments" target="_blank"> <i class="number">${aai.getAnnRacc()}</i>
											评论
									</a>
									</span> 
								</div>
								</c:forEach>
							</c:if>
						</div>
					</div>

				</div>
			</div>
</div>
</body>
</html>